package yh.common;

/**
 * 全局枚举
 * @author yh
 */
public enum OverallEnum {
    /**
     * 数据存在状态
     */
    SQL_ENABLE(1,"数据存在状态"),

    /**
     * 接口状态
     */
    NETWORK_STATE(200,"请求成功");

    private Integer code;

    private String message;
    /**
     *
     */
    OverallEnum(int code,String message){
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
